package edu.ynu.hhy.architectureclass.dao;

import edu.ynu.hhy.architectureclass.common.dao.LogicDAO;
import edu.ynu.hhy.architectureclass.entity.Device;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceDao extends LogicDAO<Device,Long> {
    Device findBySerialNumber(String serialNumber);
    List<Device> findFirst5ByOrderByIdAsc();
    List<Device> findByCategory(String category);
}
